---- 跨服工会战成功

local IconRender = require("app.widget.renders.IconRender")
local GuildWarFightOpenTipPop = class("GuildWarFightOpenTipPop", app.mvc.ViewBase)
local CrossServerGuildWarHelper = require("app.crossServer.views.guildWar.CrossServerGuildWarHelper")

GuildWarFightOpenTipPop.VIEW_ROOT_RES = Res.CSGuildWarFightOpenTipPop

function GuildWarFightOpenTipPop:init()


    self.lblTlt = self._root:findChild("Panel/tlt")
    self.lblTips1 = self._root:findChild("Panel/tips")
    self.lblTips2 = self._root:findChild("Panel/tips_1")
    self.lblTips3 = self._root:findChild("Panel/tips_2")
    
    self.lblTlt:setString(L("WGWOnlineRemind_1"))
    self.lblTips1:setString(L("WGWOnlineRemind_2"))
    self.lblTips2:setString(L("WGWOnlineRemind_3"))
    self.lblTips3:setString(L("WGWOnlineRemind_6"))

    
    self._root:findChild("Panel/Button_quxiao"):addClickEventListener(function(sender)
        self:closeView()
    end)

    self._root:findChild("Panel/map"):loadTexture(Res.CSGuildWarFightOpenTipImage)
    self._root:findChild("Panel/Button_queding/name"):setString(L("WGWOnlineRemind_5"))

    self._root:findChild("Panel/Button_queding"):addClickEventListener(function(sender)
        self:closeView()
        UIHandler:handleMessage({id = Constant.FUNC_TYPE_CS_GUILD_WAR,mode = "open"})
    end)
end


return GuildWarFightOpenTipPop
